package com.mondo.financialwallet.data.entity;

import com.google.gson.annotations.SerializedName;

import java.text.DecimalFormat;
import java.util.List;

public class HoldProductDetailsEntity extends BasisResponseEntity {


    /**
     * data : {"order_no":"0319031614502585958","pay_no":"0319031614502585958","status":3,"goods_id":23,"create_at":"0.00","pay_at":"2019-03-16","goods_name":"委托周期90天认购费率2管理费率2赎回费率2封闭0","goods_profit":"0.00","uid":"686844","goods_price":100,"expire_at":"2019-06-14","interest_at":"2019-03-17","redeem_at":"2019-06-15","leave_days":90,"yesterday_profit":0,"date_profit":[],"total_money":100,"goods_image":"http://admin.xblockbank.com/static/upload/d3d82e5cf0a0a41c/9d26ab4ad4bec259.png","company_name":"","fund_invest":"xblockbank数字资产主动策略资管计划","investment_strategy":"通过数字资产进行量化投资"}
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * order_no : 0319031614502585958
         * pay_no : 0319031614502585958
         * status : 3
         * goods_id : 23
         * create_at : 0.00
         * pay_at : 2019-03-16
         * goods_name : 委托周期90天认购费率2管理费率2赎回费率2封闭0
         * goods_profit : 0.00
         * uid : 686844
         * goods_price : 100
         * expire_at : 2019-06-14
         * interest_at : 2019-03-17
         * redeem_at : 2019-06-15
         * leave_days : 90
         * yesterday_profit : 0
         * date_profit : []
         * total_money : 100
         * goods_image : http://admin.xblockbank.com/static/upload/d3d82e5cf0a0a41c/9d26ab4ad4bec259.png
         * company_name :
         * fund_invest : xblockbank数字资产主动策略资管计划
         * investment_strategy : 通过数字资产进行量化投资
         */

        private String order_no;
        private String pay_no;
        @SerializedName("status") private int statusX;
        private int goods_id;
        private String create_at;
        private String pay_at;
        private String goods_name;
        private String goods_profit;
        private String uid;
        private double goods_price;
        private String expire_at;
        private String interest_at;
        private String redeem_at;
        private int leave_days;
        private double yesterday_profit;
        private double total_money;
        private String goods_image;
        private String company_name;
        private String fund_invest;
        private String investment_strategy;
        private List<?> date_profit;
        private int goods_type;
        private int close_day;
        private boolean is_period;

        public boolean isIs_period() {
            return is_period;
        }

        public void setIs_period(boolean is_period) {
            this.is_period = is_period;
        }

        public int getGoods_type() {
            return goods_type;
        }

        public void setGoods_type(int goods_type) {
            this.goods_type = goods_type;
        }

        public int getClose_day() {
            return close_day;
        }

        public void setClose_day(int close_day) {
            this.close_day = close_day;
        }

        public String getOrder_no() {
            return order_no;
        }

        public void setOrder_no(String order_no) {
            this.order_no = order_no;
        }

        public String getPay_no() {
            return pay_no;
        }

        public void setPay_no(String pay_no) {
            this.pay_no = pay_no;
        }

        public int getStatusX() {
            return statusX;
        }

        public void setStatusX(int statusX) {
            this.statusX = statusX;
        }

        public int getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(int goods_id) {
            this.goods_id = goods_id;
        }

        public String getCreate_at() {
            return create_at;
        }

        public void setCreate_at(String create_at) {
            this.create_at = create_at;
        }

        public String getPay_at() {
            return pay_at;
        }

        public void setPay_at(String pay_at) {
            this.pay_at = pay_at;
        }

        public String getGoods_name() {
            return goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getGoods_profit() {
            return goods_profit;
        }

        public void setGoods_profit(String goods_profit) {
            this.goods_profit = goods_profit;
        }

        public String getUid() {
            return uid;
        }

        public void setUid(String uid) {
            this.uid = uid;
        }

        public String getGoods_price() {

            return new DecimalFormat("####.####").format(goods_price);
        }

        public void setGoods_price(double goods_price) {
            this.goods_price = goods_price;
        }

        public String getExpire_at() {
            return expire_at;
        }

        public void setExpire_at(String expire_at) {
            this.expire_at = expire_at;
        }

        public String getInterest_at() {
            return interest_at;
        }

        public void setInterest_at(String interest_at) {
            this.interest_at = interest_at;
        }

        public String getRedeem_at() {
            return redeem_at;
        }

        public void setRedeem_at(String redeem_at) {
            this.redeem_at = redeem_at;
        }

        public int getLeave_days() {
            return leave_days;
        }

        public void setLeave_days(int leave_days) {
            this.leave_days = leave_days;
        }

        public String getYesterday_profit() {
            return String.valueOf(yesterday_profit);
        }

        public void setYesterday_profit(double yesterday_profit) {
            this.yesterday_profit = yesterday_profit;
        }

        public double getTotal_money() {
            return total_money;
        }

        public void setTotal_money(double total_money) {
            this.total_money = total_money;
        }

        public String getGoods_image() {
            return goods_image;
        }

        public void setGoods_image(String goods_image) {
            this.goods_image = goods_image;
        }

        public String getCompany_name() {
            return company_name;
        }

        public void setCompany_name(String company_name) {
            this.company_name = company_name;
        }

        public String getFund_invest() {
            return fund_invest;
        }

        public void setFund_invest(String fund_invest) {
            this.fund_invest = fund_invest;
        }

        public String getInvestment_strategy() {
            return investment_strategy;
        }

        public void setInvestment_strategy(String investment_strategy) {
            this.investment_strategy = investment_strategy;
        }

        public List<?> getDate_profit() {
            return date_profit;
        }

        public void setDate_profit(List<?> date_profit) {
            this.date_profit = date_profit;
        }
    }
}
